package cn.facetoken.homer;

import android.net.Uri;

import androidx.annotation.NonNull;

import com.nnf.nnfkitlib.NNF_FaceInfo;

import cn.openbiotoken.BiometricsFactory;
import cn.openbiotoken.android.facetoken.HomoSapiensEyeprintUriBiometricsFactory;

public class EyeprintRecognitionFragment extends AbstractBiometricsRecognitionFragment {

    public EyeprintRecognitionFragment() {
        super();
    }

    @Override
    @NonNull
    protected BiometricsFactory<NNF_FaceInfo, float[], Uri> createBiometricsFactory() {
        return new HomoSapiensEyeprintUriBiometricsFactory(requireContext());
    }

    @Override
    protected int getTitleResource() {
        return R.string.demonstration_eyeprint_recognition_title;
    }

    @Override
    protected int getLayout() {
        return R.layout.demonstration_eyeprint_recognition;
    }
}
